﻿using Cordyceps.Elastic.Tool.Options;
using Elastic.Clients.Elasticsearch;

namespace Cordyceps.Elastic.Tool;

/// <summary>
/// Elasticsearch 客户端工厂接口
/// </summary>
public interface IElasticsearchClientFactory
{
    /// <summary>
    /// 创建Elasticsearch客户端实例
    /// </summary>
    ElasticsearchClient CreateClient(ElasticsearchOptions options);
    
    /// <summary>
    /// 使用默认配置创建Elasticsearch客户端实例
    /// </summary>
    ElasticsearchClient CreateClient();
}